<style>
    body {background: none !important;}
    .login-img {height: 0 !important;}
    .lan-select {display: none !important;}
</style>

<div> 
    <div class="check-header">
        <span>潜在供方名录</span>
    </div>
    <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>供方名称</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="supplierName" class="form-control" ng-model="detailInfo.supplierName" required yb-focus>

                <div class="msg-block" ng-show="form.supplierName.$invalid && submitted">
                    <div class="error-msg" ng-if="form.supplierName.$error.required && !form.supplierName.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>联系人</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="contactName" class="form-control" ng-model="detailInfo.contactName" required yb-focus>

                <div class="msg-block" ng-show="form.contactName.$invalid && submitted">
                    <div class="error-msg" ng-if="form.contactName.$error.required && !form.contactName.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>联系方式</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="contactTel" class="form-control" required yb-focus yb-mobile maxlength="11" 
                    ng-model="detailInfo.contactTel" ng-blur="onContactTelChange(detailInfo.contactTel, form.contactTel.$invalid)">

                <div class="msg-block" ng-show="form.contactTel.$invalid && submitted">
                    <div class="error-msg" ng-if="form.contactTel.$error.required && !form.contactTel.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                    <div class="error-msg" ng-show="form.contactTel.$error.mobile && !form.contactTel.focused">
                        <i class="yb-icon ico-times-circular"></i><span>联系方式格式错误</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>大品类</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="majorCategory" class="form-control" ng-model="detailInfo.majorCategory" required yb-focus>

                <div class="msg-block" ng-show="form.majorCategory.$invalid && submitted">
                    <div class="error-msg" ng-if="form.majorCategory.$error.required && !form.majorCategory.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>小品类</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="minorCategory" class="form-control" ng-model="detailInfo.minorCategory" required yb-focus>

                <div class="msg-block" ng-show="form.minorCategory.$invalid && submitted">
                    <div class="error-msg" ng-if="form.minorCategory.$error.required && !form.minorCategory.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>适用机型</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="machineModel" class="form-control" ng-model="detailInfo.machineModel" required yb-focus>

                <div class="msg-block" ng-show="form.machineModel.$invalid && submitted">
                    <div class="error-msg" ng-if="form.machineModel.$error.required && !form.machineModel.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>企业性质</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <select name="companyType" class="form-control" ng-model="detailInfo.companyType" required>
                    <option value="">请选择</option>
                    <option value="国有">国有</option>
                    <option value="民营">民营</option>
                    <option value="外资">外资</option>
                    <option value="合资">合资</option>
                    <option value="合作">合作</option>
                </select>

                <div class="msg-block" ng-show="form.companyType.$invalid && submitted">
                    <div class="error-msg" ng-if="form.companyType.$error.required && !form.companyType.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>详细地址</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="companyAddress" class="form-control" ng-model="detailInfo.companyAddress" required yb-focus>

                <div class="msg-block" ng-show="form.companyAddress.$invalid && submitted">
                    <div class="error-msg" ng-if="form.companyAddress.$error.required && !form.companyAddress.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>成立时间</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" class="form-control date-picker cursor-pointer" name="companyFoundingTime"
                    ng-model="detailInfo.companyFoundingTime"
                    datepicker-popup="{{'yyyy-MM-dd'}}" modal-size="small"
                    ng-click="showCompanyFoundingTime=!showCompanyFoundingTime"
                    is-open="showCompanyFoundingTime" close-text="关闭" readonly required>

                <div class="msg-block" ng-show="form.companyFoundingTime.$invalid && submitted">
                    <div class="error-msg" ng-if="form.companyFoundingTime.$error.required">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>企业法人</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="companyLegalPerson" class="form-control" ng-model="detailInfo.companyLegalPerson" required yb-focus>

                <div class="msg-block" ng-show="form.companyLegalPerson.$invalid && submitted">
                    <div class="error-msg" ng-if="form.companyLegalPerson.$error.required && !form.companyLegalPerson.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>注册资金</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="companyRegisterMoney" class="form-control" ng-model="detailInfo.companyRegisterMoney" required yb-focus
                    yb-number-input disable-decimal="false" decimal-places="2" max="9999999999.999">

                <div class="msg-block" ng-show="form.companyRegisterMoney.$invalid && submitted">
                    <div class="error-msg" ng-if="form.companyRegisterMoney.$error.required && !form.companyRegisterMoney.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>当年年产值</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="annualOutputMoney" class="form-control" ng-model="detailInfo.annualOutputMoney" required yb-focus
                    yb-number-input disable-decimal="false" decimal-places="2" max="9999999999.999">

                <div class="msg-block" ng-show="form.annualOutputMoney.$invalid && submitted">
                    <div class="error-msg" ng-if="form.annualOutputMoney.$error.required && !form.annualOutputMoney.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>员工总数量</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="employeeNumber" class="form-control" ng-model="detailInfo.employeeNumber" required yb-focus yb-number-input max="99999">

                <div class="msg-block" ng-show="form.employeeNumber.$invalid && submitted">
                    <div class="error-msg" ng-if="form.employeeNumber.$error.required && !form.employeeNumber.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>研发人员数量</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="researcherNumber" class="form-control" ng-model="detailInfo.researcherNumber" required yb-focus yb-number-input max="99999">

                <div class="msg-block" ng-show="form.researcherNumber.$invalid && submitted">
                    <div class="error-msg" ng-if="form.researcherNumber.$error.required && !form.researcherNumber.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><span>体系文件</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" class="form-control" ng-model="detailInfo.systemDocument">
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>厂房持有</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <select name="workshopType" class="form-control" ng-model="detailInfo.workshopType" required>
                    <option value="">请选择</option>
                    <option value="自建">自建</option>
                    <option value="租赁">租赁</option>
                    <option value="其他">其他</option>
                </select>

                <div class="msg-block" ng-show="form.workshopType.$invalid && submitted">
                    <div class="error-msg" ng-if="form.workshopType.$error.required && !form.workshopType.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>主要客户情况</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" name="mainCustomerInfo" class="form-control" ng-model="detailInfo.mainCustomerInfo" required yb-focus>

                <div class="msg-block" ng-show="form.mainCustomerInfo.$invalid && submitted">
                    <div class="error-msg" ng-if="form.mainCustomerInfo.$error.required && !form.mainCustomerInfo.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><i>*</i><span>主要销售渠道</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <select name="mainSaleChannel" class="form-control" ng-model="detailInfo.mainSaleChannel" required>
                    <option value="">请选择</option>
                    <option value="经销商">经销商</option>
                    <option value="直营">直营</option>
                    <option value="其他">其他</option>
                </select>

                <div class="msg-block" ng-show="form.mainSaleChannel.$invalid && submitted">
                    <div class="error-msg" ng-if="form.mainSaleChannel.$error.required && !form.mainSaleChannel.focused">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label"><span>备注</span>：</label>
            <div class="col-xs-8 wrapper-none">
                <input type="text" class="form-control" ng-model="detailInfo.remark">
            </div>
        </div>

        <div class="form-group">
            <div class="col-xs-offset-3">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)">保存</button>
            </div>
        </div>
    </form>
</div>